package com.eaoa.vo.pub.base;

import java.util.HashSet;
import java.util.Set;

/**
 * PubDatadictionary entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class BasePubDatadictionary implements java.io.Serializable {

	// Fields

	private Long ddno;
	private String ddcode;
	private String ddname;
	private String dddesc;
	private Set pubDditems = new HashSet(0);
	
	private int hashCode = Integer.MIN_VALUE;
	
	public boolean equals(Object obj) {
		if (null == obj)
			return false;
		if (!(obj instanceof BasePubDatadictionary))
			return false;
		else {
			BasePubDatadictionary dictionary = (BasePubDatadictionary) obj;
			if (null == this.getDdno()
					|| null == dictionary
							.getDdno())
				return false;
			else
				return (this.getDdno()
						.equals(dictionary
								.getDdno()));
		}
	}

	public int hashCode() {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getDdno())
				return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":"
						+ this.getDdno().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}

	// Constructors

	/** default constructor */
	public BasePubDatadictionary() {
		initialize();
	}

	/** minimal constructor */
	public BasePubDatadictionary(Long ddno) {
		this.ddno = ddno;
		initialize();
	}
	protected void initialize() {
	}

	// Property accessors

	public Long getDdno() {
		return this.ddno;
	}

	public void setDdno(Long ddno) {
		this.ddno = ddno;
	}

	public String getDdcode() {
		return this.ddcode;
	}

	public void setDdcode(String ddcode) {
		this.ddcode = ddcode;
	}

	public String getDdname() {
		return this.ddname;
	}

	public void setDdname(String ddname) {
		this.ddname = ddname;
	}

	public String getDddesc() {
		return this.dddesc;
	}

	public void setDddesc(String dddesc) {
		this.dddesc = dddesc;
	}

	public Set getPubDditems() {
		return this.pubDditems;
	}

	public void setpubDditems(Set pubDditems) {
		this.pubDditems = pubDditems;
	}

}